package com.dfbz.demo01_接口的语法;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {

        B b=new B();

        b.method();

    }
}

interface A {
//    public abstract void method();

    void method();
}


class B implements A {
    public void method() {
        System.out.println("hello...");
    }
}